package action;

import java.util.ArrayList;

import DAO.Dao_Trust;
import Entity.TrustRegions;

import com.opensymphony.xwork2.ActionSupport;

public class CheckboxAction extends ActionSupport{

	private static final long serialVersionUID = 1L;
	private boolean includeInActive;
	
	private ArrayList<TrustRegions> list;	
	public String execute()
	{
		Dao_Trust cont = new Dao_Trust();
		 if(includeInActive){
			 list = cont.getTrustRegions();
			 
		 }else{
			 list = cont.getDsTRActive();
		 }
		 return "success";
	}
	public boolean isIncludeInActive() {
		return includeInActive;
	}

	public void setIncludeInActive(boolean includeInActive) {
		this.includeInActive = includeInActive;
	}
	public ArrayList<TrustRegions> getList() {
		return list;
	}
	public void setList(ArrayList<TrustRegions> list) {
		this.list = list;
	}
	
	
}
